package entity;

import java.util.Date;

import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement
@Entity
@DiscriminatorValue(value="k")
public class KreditnoPlacanje extends NacinPlacanja{
	private String broj,tip;
	private Date danIsticanja;
	
	public KreditnoPlacanje() {
		
	}
	
	public KreditnoPlacanje(String broj, String tip, Date danIsticanja) {
		this.broj = broj;
		this.tip = tip;
		this.danIsticanja = danIsticanja;
	}
	
	public String getBroj() {
		return broj;
	}
	public void setBroj(String broj) {
		this.broj = broj;
	}
	public String getTip() {
		return tip;
	}
	public void setTip(String tip) {
		this.tip = tip;
	}
	public Date getDanIsticanja() {
		return danIsticanja;
	}
	public void setDanIsticanja(Date danIsticanja) {
		this.danIsticanja = danIsticanja;
	}
	
	
}
